package com.yunfei.bo.prodAnswAcceDtl;
import com.yunfei.entity.prodAnswAcceDtl.*;
import com.yunfei.utils.string.StringUtil;
   /**
    *@tablename PROD_ANSW_ACCE_DTL
    *@author zhengyunfei
    *@createDate Thu Jan 17 10:59:39 CST 2019
    */ 


public class ProdAnswAcceDtlBo implements java.io.Serializable{
	private String answId;
	private String acceId;
	private String acceOrder;
	private String acceNm;
	private String acceUrl;
	private String effeFlg;
	private String field;
	private String order;
   /**
		* 更改排序字段
		* @return
		*/
   public String getField() {
		   return field;
   }
   public void setField(String field) {
		   this.field = field;
   }
   public String getOrder() {
		   return order;
   }
   public void setOrder(String order) {
		   this.order = order;
   }
	private int curNo;
	public int getCurNo() {
		int value=(curNo-1)*curSize;
		return value;
	}	
	public void setCurNo(int curNo) {
		this.curNo = curNo;
	}
	private int curSize;
	public int getCurSize() {
		return curSize;
	}
	public void setCurSize(int curSize) {
		this.curSize = curSize;
	}
	public void setAnswId(String answId){
		this.answId=answId;
	}
	public String getAnswId(){
		return answId;
	}
	public void setAcceId(String acceId){
		this.acceId=acceId;
	}
	public String getAcceId(){
		return acceId;
	}
	public void setAcceOrder(String acceOrder){
		this.acceOrder=acceOrder;
	}
	public String getAcceOrder(){
		return acceOrder;
	}
	public void setAcceNm(String acceNm){
		this.acceNm=acceNm;
	}
	public String getAcceNm(){
		return acceNm;
	}
	public void setAcceUrl(String acceUrl){
		this.acceUrl=acceUrl;
	}
	public String getAcceUrl(){
		return acceUrl;
	}
	public void setEffeFlg(String effeFlg){
		this.effeFlg=effeFlg;
	}
	public String getEffeFlg(){
		return effeFlg;
	}
	public static ProdAnswAcceDtlEntity boToEntity(ProdAnswAcceDtlBo bo){
		ProdAnswAcceDtlEntity entity=new ProdAnswAcceDtlEntity();
		entity.setAnswId(bo.getAnswId());
		entity.setAcceId(bo.getAcceId());
		entity.setAcceOrder(bo.getAcceOrder());
		entity.setAcceNm(bo.getAcceNm());
		entity.setAcceUrl(bo.getAcceUrl());
		entity.setEffeFlg(bo.getEffeFlg());
		return entity;
	}
	public static ProdAnswAcceDtlBo entityToBo(ProdAnswAcceDtlEntity bo){
		ProdAnswAcceDtlBo entity=new ProdAnswAcceDtlBo();
		entity.setAnswId(bo.getAnswId());
		entity.setAcceId(bo.getAcceId());
		entity.setAcceOrder(bo.getAcceOrder());
		entity.setAcceNm(bo.getAcceNm());
		entity.setAcceUrl(bo.getAcceUrl());
		entity.setEffeFlg(bo.getEffeFlg());
		return entity;
	}
	public static String changeFieldColumn(String field){
		String result="";
			if(!StringUtil.isNullOrEmpty(field)){
				if(field.equals("answId")){
					result="ANSW_ID";
				}
				if(field.equals("acceId")){
					result="ACCE_ID";
				}
				if(field.equals("acceOrder")){
					result="ACCE_ORDER";
				}
				if(field.equals("acceNm")){
					result="ACCE_NM";
				}
				if(field.equals("acceUrl")){
					result="ACCE_URL";
				}
				if(field.equals("effeFlg")){
					result="EFFE_FLG";
				}
		}
		return result;
	}
}

